from core.config import using_config
from utils.functions_collect import dropout

if '__file__' in globals():
    import os, sys
    sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import numpy as np

x = np.ones(5)
print(x)

# When training
y = dropout(x)
print(y)

# When testing (predicting)
with using_config('train', False):
    y = dropout(x)
    print(y)